package com.redstar.day01_lianbiaofanzhuan;

/**
 * TODO 在这里添加注释
 *
 * @author lihongxing
 * @date 2021/04/14 21:24
 */
public class Node {

    private Integer value;

    private Node next;


    public Node(Integer value, Node next) {
        this.value = value;
        this.next = next;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return value +"->" + next;
    }
}
